import http from '@/http'
 
import { ListZbParam, ZbModel } from './ZbModel'
//新增
export const addUserApi = (param:ZbModel) => {
    return http.post("/api/zb",param)
}
//列表
export const getListApi = (param:ListZbParam) => {
    return http.get("/api/zb/list",param)
}
//编辑
export const editUserApi = (param:ZbModel) => {
    return http.put("/api/zb",param)
}
//删除
export const deleteUserApi = (id:string) => {
    return http.delete(`/api/zb/${id}`)
}
